package com.tn.exam.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * InfoCategory entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "info_category")
public class InfoCategory extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer id;
	private String categoryName;
	private String categoryDescription;
	private Integer categoryCreaterId;
	private Date categoryCreatedTime;
	private Integer categoryEnable;
	private Integer categoryModifyId;
	private Date categoryModifyTime;

	// Constructors

	/** default constructor */
	public InfoCategory() {
	}

	/** minimal constructor */
	public InfoCategory(String categoryName, Integer categoryCreaterId,
			Date categoryCreatedTime, Integer categoryEnable) {
		this.categoryName = categoryName;
		this.categoryCreaterId = categoryCreaterId;
		this.categoryCreatedTime = categoryCreatedTime;
		this.categoryEnable = categoryEnable;
	}

	/** full constructor */
	public InfoCategory(String categoryName, String categoryDescription,
			Integer categoryCreaterId, Date categoryCreatedTime,
			Integer categoryEnable, Integer categoryModifyId,
			Date categoryModifyTime) {
		this.categoryName = categoryName;
		this.categoryDescription = categoryDescription;
		this.categoryCreaterId = categoryCreaterId;
		this.categoryCreatedTime = categoryCreatedTime;
		this.categoryEnable = categoryEnable;
		this.categoryModifyId = categoryModifyId;
		this.categoryModifyTime = categoryModifyTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "category_id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "category_name", nullable = false, length = 39)
	public String getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	@Column(name = "category_description", length = 512)
	public String getCategoryDescription() {
		return this.categoryDescription;
	}

	public void setCategoryDescription(String categoryDescription) {
		this.categoryDescription = categoryDescription;
	}

	@Column(name = "category_creater_id", nullable = false)
	public Integer getCategoryCreaterId() {
		return this.categoryCreaterId;
	}

	public void setCategoryCreaterId(Integer categoryCreaterId) {
		this.categoryCreaterId = categoryCreaterId;
	}

	@Column(name = "category_created_time", nullable = false, length = 19)
	public Date getCategoryCreatedTime() {
		return this.categoryCreatedTime;
	}

	public void setCategoryCreatedTime(Date categoryCreatedTime) {
		this.categoryCreatedTime = categoryCreatedTime;
	}

	@Column(name = "category_enable", nullable = false)
	public Integer getCategoryEnable() {
		return this.categoryEnable;
	}

	public void setCategoryEnable(Integer categoryEnable) {
		this.categoryEnable = categoryEnable;
	}

	@Column(name = "category_modify_id")
	public Integer getCategoryModifyId() {
		return this.categoryModifyId;
	}

	public void setCategoryModifyId(Integer categoryModifyId) {
		this.categoryModifyId = categoryModifyId;
	}

	@Column(name = "category_modify_time", length = 19)
	public Date getCategoryModifyTime() {
		return this.categoryModifyTime;
	}

	public void setCategoryModifyTime(Date categoryModifyTime) {
		this.categoryModifyTime = categoryModifyTime;
	}

}